home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / Tickle-4.0 (tcl) / library / help / tcl / lists / lassign < prev    next >
Encoding:
Text File  |  1993-10-26  |  535 b   |  15 lines  |  [TEXT/$Tcl]

  1.  
  2.  
  3.           lassign list var ?var...?
  4.                Assign successive elements of a list to specified vari-
  5.                ables.   Any leftover fields are discarded.  When there
  6.                are more variable  names  than  fields,  the  remaining
  7.                variables are set to the empty string.
  8.  
  9.                For example,
  10.  
  11.                   lassign {dave 100 200 {Dave Foo}} name uid gid longName
  12.  
  13.                Assigns name  to  ``dave'',  uid  to  ``100'',  gid  to
  14.                ``200'', and longName to ``Dave Foo''.
  15.